package com.chenxin.interact.controller;

import com.chenxin.common.core.controller.BaseController;
import com.chenxin.common.core.page.TableDataInfo;
import com.chenxin.interact.domain.sapToWms.SapToWmsItem;
import com.chenxin.interact.service.ISapToWmsItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * SAP物料接口Controller
 *
 * @author gry
 * @date 2025-04-23
 */
@RestController
@RequestMapping("/interact/sapItem")
public class SapToWmsItemController extends BaseController {
    @Autowired
    private ISapToWmsItemService sapToWmsItemService;

    /**
     * 查询SAP物料接口列表
     */
    @PreAuthorize("@ss.hasPermi('interact:sapItem:list')")
    @GetMapping("/list")
    public TableDataInfo list(SapToWmsItem sapToWmsItem) {
        startPage();
        List<SapToWmsItem> list = sapToWmsItemService.selectSapToWmsItemList(sapToWmsItem);
        return getDataTable(list);
    }
}
